A Semantics for Modular General Logic Programs
نویسنده
چکیده
Modular programs are built as a combination of separate modules, which may be developed and veriied separately. Therefore, in order to reason over such programs, compositionality plays a crucial role: the semantics of the whole program must be obtainable as a simple function from the semantics of its individual modules. In the eld of logic programming, the need for a compositional semantics has been long recognized, however, while for deenite (i.e. negation-free) logic programs a few such semantics have been proposes, in the literature of normal logic programs (programs which employ the negation operator), compositionality has received scarce attention. This is mainly due to the fact that normal programs typically have a nonmonotonic behavior, which is diicult to t in a compositional framework. Here we propose a declarative compositional semantics for general logic programs. First, a compositional semantics for rst-order modules is presented and proven correct wrt the set of logical consequences of the module in three-valued logic. In a second stage, the obtained results are applied to modular normal logic programs, obtaining a semantics which is correct with respect to the set of logical consequences of the completion of the program and { in contrast with the other approaches { which is always computable. This semantics might be regarded as a compositional counterpart of Kunen's semantics. Finally we discuss and show how these results have to be modiied in order to be applied to normal Constraint Logic Programs. Note: A preliminary, shorter version of this paper will appear as ET96].
منابع مشابه
Universit a Di Pisa Programming by Combining General Logic Programs Programming by Combining General Logic Programs
The program composition approach can be fruitfully applied to combine general logic programs, i.e. logic programs possibly containing negative premises. We show how the introduction of a basic set of (meta-level) composition operations over general programs increases the knowledge representation capabilities of logic programming for non-monotonic reasoning. Examples of modular programming, hier...
متن کاملModular Logic Programs over Finite Domains
In this paper we study the properties of a compositional semantics for logic programs and its applications to modular analysis and logic-based databases, focusing on programs deened on a nite domain (i.e. on a function free nite signature). By this restriction we obtain a nite characterization of the compositional semantics which has the same correctness and compositionality properties of the o...
متن کاملEmbedding Description Logic Programs into Default Logic
Description logic programs (dl-programs) under the answer set semantics formulated by Eiter et al. have been considered as a prominent formalism for integrating rules and ontology knowledge bases. A question of interest has been whether dl-programs can be captured in a general formalism of nonmonotonic logic. In this paper, we study the possibility of embedding dl-programs into default logic. W...
متن کامل2 an or - Compositional Semantics for Logic
In this chapter we show a semantics for pure logic programs which correctly models computed answer substitutions and which is compositional wrt union of programs (i.e. OR-compositional). According to the general approach described in 15], the semantics is based on a domain which consists of sets of (equivalence classes of) clauses. We rst deene an operational version O(P) of the semantics and w...
متن کاملModular Logic Programming and Generalized Quantifiers
The research on systems of logic programming with modules has followed two mainstreams, programming-in-the-large, where compo-sitional operators are provided for combining separate and independent modules, and programming-in-the-small, which aims at enhancing logic programming with new logical connectives. In this paper, we present a general model theoretic approach to modular logic programming...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Theor. Comput. Sci.
دوره 206 شماره
صفحات -
تاریخ انتشار 1998